import { StandardPartsFeatureDto, IStandardPartsDetailDto,StandardDetailType } from '@shared/service-proxies/service-proxies';
export class StandardPartsDetailSelf implements IStandardPartsDetailDto{
    id: string | undefined;
    features: StandardPartsFeatureDto | undefined;
    price: number | undefined;
    serialNumber: string | undefined;
    isTempering: boolean | undefined;
    safetyStock: number | undefined;
    standardType: StandardDetailType | undefined;

    constructor(data?: IStandardPartsDetailDto) {
        if (data) {
            for (var property in data) {
                if (data.hasOwnProperty(property))
                    (<any>this)[property] = (<any>data)[property];
            }
        }
    }
    toString() {
        if(this.id){
            return this.serialNumber + ' | ' + this.features.displayName;
        }
        return "";
    }
}